import htttp from '@/utils/request'

export const category = {
  getNewsCategory: {
    url: 'article/category/lst',
    method:'get'
  }
}

export const detail = {
  getNewsDetail: {
    url: 'article/detail/162',
    method:'get'
  }
}

export const getNewsCategory = params => {
	console.log(category.getNewsCategory)
	console.log(params)
  return htttp.request({
    ...category.getNewsCategory,params
  })
}

export const getAdvisoryNewsList = params => {
  return htttp.request({
    url: 'article/lst/16' + '/' + 'cid='+ params,
    method:'get'
  })
}

export const getNewsDetail = params => {
  return htttp.request({
    ...detail.getNewsDetail, params:{id:params}
  })
}
